From 17cb592a0fa6295a0f90f40f27a5adbd0c7963ce Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 20 Feb 2006 20:04:49 +0000 Subject: [PATCH] Mapopolis: strdup->xstrdup. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1741 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/mapopolis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/mapopolis.c b/gpsbabel/mapopolis.c index 4119030ec..2be3bbb10 100644 --- a/gpsbabel/mapopolis.c +++ b/gpsbabel/mapopolis.c @@ -164,13 +164,13 @@ decode(char *buf) be_read16(&rec->lon1d) / LONDIV2; vdata = (char *) rec + sizeof(*rec); - wpt_tmp->description = strdup(vdata); + wpt_tmp->description = xstrdup(vdata); vdata += strlen(wpt_tmp->description) + 1 + 6; while (*vdata == 0x40) vdata++; decode(vdata); - wpt_tmp->notes = strdup(vdata); + wpt_tmp->notes = xstrdup(vdata); vdata += strlen(wpt_tmp->notes) + 1; waypt_add(wpt_tmp); -- 2.30.2